
#include <QtGui>
#include "tablemodels.h"


QT_BEGIN_NAMESPACE
class QSortFilterProxyModel;
class QItemSelectionModel;
QT_END_NAMESPACE


class CSLEPFilesWorkspaceWidget : public QDockWidget {
	Q_OBJECT

public:
	CSLEPFilesWorkspaceWidget(const QString& title, QWidget *parent=0);
	CSLEPFilesWorkspaceWidget(QWidget *parent=0);

public slots:
	void setWorkingDir(QString dir);

private slots:
	void addCSLEPObj();
	void removeCSLEPObj();

signals:
	void workingDirChanged(QString);

private:
	QTableView *tableViewWorkspaceFiles;
	ObjectListModel *tableModelWorkspaceFiles;

	QLineEdit *lineEditDirectory;
	QPushButton *buttonAdd;
	QPushButton *buttonRemove;
};


class SlepFileMethods{
public:
	static slep_matrix*		readDMatrix(QString filename);
	static void				writeDMatrix(QString filename, slep_matrix* A);

//static slep_vector*		readVector(QString filename);
};